package com.example.controller;

import com.example.swagger.generate.api.BaseControllerApi;
import com.example.swagger.generate.model.HelloResponse;
import com.example.swagger.generate.model.LoadAds200Response;
import com.example.swagger.generate.model.StatusEnum;
import com.example.swagger.generate.model.User;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController implements BaseControllerApi {

    /**
     * GET /hello : 问候
     * 返回一个问候消息
     *
     * @return 成功响应 (status code 200)
     */
    @Override
    public ResponseEntity<HelloResponse> sayHello() {
        return ResponseEntity.ok(HelloResponse.builder().message("api生成返回结果").build());
    }

    /**
     * GET /enum : hh
     * 生成返回结果是enum
     *
     * @return todo (status code 200)
     */
    @Override
    public ResponseEntity<StatusEnum> enumGet() {
        return null;
    }

    /**
     * GET /load/ads : 返回广告
     * 描述信息
     *
     * @return 成功时的返回值 (status code 200)
     */
    @Override
    public ResponseEntity<LoadAds200Response> loadAds() {
        return null;
    }

    /**
     * GET /user/{userId} : 获取用户信息
     * 根据用户 ID 获取用户信息
     *
     * @param userId (required)
     * @return 成功响应 (status code 200)
     */
    @Override
    public ResponseEntity<User> loadUserInfo(Integer userId) {
        return null;
    }
}